package com.ruoyi.patrol.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡查线路和巡逻点位关联对象 pt_line_site
 *
 * @author lkm
 * @date 2022-11-09
 */
public class PtLineSite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 巡查线路标识 */
    @Excel(name = "巡查线路标识")
    private Long lineId;

    /** 巡逻点位标识 */
    @Excel(name = "巡逻点位标识")
    private Long siteId;

    /** 本巡逻点位在本线路中的顺序，以数字1开始。 */
    @Excel(name = "本巡逻点位在本线路中的顺序，以数字1开始。")
    private Integer siteOrder;

    /** 本巡逻点位要求的巡查时间范围之起始时间 */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "本巡逻点位要求的巡查时间范围之起始时间", width = 30, dateFormat = "HH:mm")
    private Date startTime;

    /** 本巡逻点位要求的巡查时间范围之截止时间 */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "本巡逻点位要求的巡查时间范围之截止时间", width = 30, dateFormat = "HH:mm")
    private Date finishTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setLineId(Long lineId)
    {
        this.lineId = lineId;
    }

    public Long getLineId()
    {
        return lineId;
    }
    public void setSiteId(Long siteId)
    {
        this.siteId = siteId;
    }

    public Long getSiteId()
    {
        return siteId;
    }
    public void setSiteOrder(Integer siteOrder)
    {
        this.siteOrder = siteOrder;
    }

    public Integer getSiteOrder()
    {
        return siteOrder;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setFinishTime(Date finishTime)
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime()
    {
        return finishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("lineId", getLineId())
                .append("siteId", getSiteId())
                .append("siteOrder", getSiteOrder())
                .append("startTime", getStartTime())
                .append("finishTime", getFinishTime())
                .toString();
    }
}